#include <bits/stdc++.h>
using namespace std;
long long k[500000];
long long a,j;
int d1=0,d0=0,d2=0;

long long q[10000000];


int main(){
freopen("duel.in","r",stdin);
freopen("duel.out","w",stdout);
    cin>>a;
    int ans=a;
    for(int i=0;i<a;i++){
        cin>>q[i];
    }

    cout<<ans-min(d1,d2);
fclose(stdin);
fclose(stdout);
return 0;
}
